home *** CD-ROM | disk | FTP | other *** search
- #ifndef _cannon_h
- #define _cannon_h
-
- #ifndef _real_h
- # include "real.h"
- #endif
- #ifndef _billard_h
- # include "billard.h"
- #endif
-
- class Wall;
- class Ball;
-
- class Cannon : public Billard {
- public:
- static Real TableWidth;
- static Real TableHeight;
- static Real BallRadius;
-
- public:
- Cannon(double dx=TableWidth, double dy=TableHeight);
- virtual ~Cannon();
-
- virtual const Real &GetNormalBallSize() const;
-
- virtual void InitPlayground();
- virtual void DrawBackground() const;
-
- protected:
- ColorId red_col;
- ColorId white_col;
- ColorId yellow_col;
-
- private:
- Ball *w1, *w2;
- Ball *r;
- };
-
- #endif
-